import 'package:xin_he/generated/json/base/json_convert_content.dart';
import 'package:xin_he/page/home/model/xin_he_goods_item_entity.dart';

XinHeGoodsItemEntity $XinHeGoodsItemEntityFromJson(Map<String, dynamic> json) {
	final XinHeGoodsItemEntity xinHeGoodsItemEntity = XinHeGoodsItemEntity();
	final String? dis = jsonConvert.convert<String>(json['dis']);
	if (dis != null) {
		xinHeGoodsItemEntity.dis = dis;
	}
	final double? freightFee = jsonConvert.convert<double>(json['freightFee']);
	if (freightFee != null) {
		xinHeGoodsItemEntity.freightFee = freightFee;
	}
	final int? goodsTypeId = jsonConvert.convert<int>(json['goodsTypeId']);
	if (goodsTypeId != null) {
		xinHeGoodsItemEntity.goodsTypeId = goodsTypeId;
	}
	final int? goodsZoneType = jsonConvert.convert<int>(json['goodsZoneType']);
	if (goodsZoneType != null) {
		xinHeGoodsItemEntity.goodsZoneType = goodsZoneType;
	}
	final int? goodsZoneTypeId = jsonConvert.convert<int>(json['goodsZoneTypeId']);
	if (goodsZoneTypeId != null) {
		xinHeGoodsItemEntity.goodsZoneTypeId = goodsZoneTypeId;
	}
	final String? iconPath = jsonConvert.convert<String>(json['iconPath']);
	if (iconPath != null) {
		xinHeGoodsItemEntity.iconPath = iconPath;
	}
	final int? id = jsonConvert.convert<int>(json['id']);
	if (id != null) {
		xinHeGoodsItemEntity.id = id;
	}
	final String? name = jsonConvert.convert<String>(json['name']);
	if (name != null) {
		xinHeGoodsItemEntity.name = name;
	}
	final double? originalPrice = jsonConvert.convert<double>(json['originalPrice']);
	if (originalPrice != null) {
		xinHeGoodsItemEntity.originalPrice = originalPrice;
	}
	final double? price = jsonConvert.convert<double>(json['price']);
	if (price != null) {
		xinHeGoodsItemEntity.price = price;
	}
	final String? remark = jsonConvert.convert<String>(json['remark']);
	if (remark != null) {
		xinHeGoodsItemEntity.remark = remark;
	}
	final int? sellerUserId = jsonConvert.convert<int>(json['sellerUserId']);
	if (sellerUserId != null) {
		xinHeGoodsItemEntity.sellerUserId = sellerUserId;
	}
	final String? sendAddress = jsonConvert.convert<String>(json['sendAddress']);
	if (sendAddress != null) {
		xinHeGoodsItemEntity.sendAddress = sendAddress;
	}
	final String? unit = jsonConvert.convert<String>(json['unit']);
	if (unit != null) {
		xinHeGoodsItemEntity.unit = unit;
	}
	return xinHeGoodsItemEntity;
}

Map<String, dynamic> $XinHeGoodsItemEntityToJson(XinHeGoodsItemEntity entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['dis'] = entity.dis;
	data['freightFee'] = entity.freightFee;
	data['goodsTypeId'] = entity.goodsTypeId;
	data['goodsZoneType'] = entity.goodsZoneType;
	data['goodsZoneTypeId'] = entity.goodsZoneTypeId;
	data['iconPath'] = entity.iconPath;
	data['id'] = entity.id;
	data['name'] = entity.name;
	data['originalPrice'] = entity.originalPrice;
	data['price'] = entity.price;
	data['remark'] = entity.remark;
	data['sellerUserId'] = entity.sellerUserId;
	data['sendAddress'] = entity.sendAddress;
	data['unit'] = entity.unit;
	return data;
}